package com.xie.web;

import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;

import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

@Controller
public class Login {

    @RequestMapping("/false")
    @ResponseBody
    public Map<String,String> falses(){
        Map<String,String> rs=new HashMap<>();
        rs.put("message","用户名或密码错误");
        return rs;
    }
    @RequestMapping("/secuess")
    @ResponseBody
    public Map<String,String> secuess(){
        Map<String,String> rs=new HashMap<>();
        rs.put("message","yes");
        return rs;
    }
}
